package com.hxl.tech.gateway.auth.context;

import java.time.LocalDateTime;


public class RequestHolder {

    private static final ThreadLocal<LocalDateTime> start = new InheritableThreadLocal<>();

    public static void set(LocalDateTime localDateTime) {
        start.set(localDateTime);
    }

    public static LocalDateTime get() {
        return start.get();
    }

    public static void clear() {
        start.remove();
    }
}
